<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/templates/default.xhtml">
	<ui:define name="content">
	
		<h1>Student Information</h1>
		
		<h:form id="class">
			<div class="box-body">
		        <div class="form-group">
		            <label for="name">Student ID</label>
		            <h:inputText name="studentId" class="form-control" value="#{studentsController.student.studentId}"/>
		        </div>
		        <div class="form-group">
		            <label for="startDate">First Name</label>
		            <h:inputText name="firstName" class="form-control" value="#{studentsController.student.firstName}"/>
		        </div>
				<div class="form-group">
		            <label for="endDate">Last Name</label>
		            <h:inputText name="lastName" class="form-control" value="#{studentsController.student.lastName}"/>
		        </div>
		        <div class="form-group">
		            <label for="semester">Gender</label>
		            <h:selectOneMenu value="#{studentsController.student.gender}" styleClass="form-control">
	                    <f:selectItems value="#{studentsController.genderEnum}"/>
	                </h:selectOneMenu>
		        </div>
		        <div class="form-group">
		            <label for="endDate">Email</label>
		            <h:inputText name="email" class="form-control" value="#{studentsController.student.email}"/>
		        </div>
				<div class="form-group">
		            <label for="maxStudents">Address</label>
					<h:inputText name="address" class="form-control" value="#{studentsController.student.address}"/>
		        </div>
			</div>
			<div class="box-footer">
	            <h:commandButton action="#{studentsController.doSubmit}" value="Save" styleClass="btn btn-primary"/>
	           	<h:commandButton value="Clear" type="reset" styleClass="btn"/>
	        </div>
		</h:form>

	</ui:define>
</ui:composition>